﻿@model Nop.Plugin.ActiveForever.ActiveChat.Models.ActiveChatModel

@{
    Layout = "";
    Html.AddScriptParts("~/Plugins/ActiveForever.ActiveChat/Scripts/livechat-client.js");
    Html.AddCssFileParts("~/Plugins/ActiveForever.ActiveChat/Content/livechat.css");
}

@using System
@using Nop.Web.Framework.UI

@if (!string.IsNullOrEmpty(Model.WidgetImage))
{
    <div id="liveChatButton" class="liveChatButton-Custom" data-width="800" data-height="600">
        <img src="~/Content/Images/@Model.WidgetImage" />
    </div>
} else {
    <div id="liveChatButton" class="liveChatButton" data-width="800" data-height="600"></div>
}